<%--
  Created by IntelliJ IDEA.
  User: wkk
  Date: 2022/5/7
  Time: 17:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改页面</title>
</head>
<script src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.css">

<style>
    #frm{
        width: 20%;
        margin: 200px 40%;
    }
</style>
<body>
<div id="dv">
<form action="${pageContext.request.contextPath}/userAll/update" method="post" id="frm">
    <input type="text" name="id" value="${user.id}" style="display: none">
<div class="input-group" style="">
    <label class="input-group-addon">名字：</label>
    <input type="text" name="name" value="${user.name}" class="form-control"><br/>
</div>
<br>
<div class="input-group">
    <label class="input-group-addon">密码：</label>
    <input type="text" name="password" value="${user.password}" class="form-control"><br/>
</div>
<br/>
<div class="input-group">
    <label>性别：</label>

    <input type="radio" name="sex" value="男"  <c:if test="${user.sex eq '男'}">checked</c:if>  >男
    <input type="radio" name="sex" value="女"  <c:if test="${user.sex eq '女'}">checked</c:if>  >女
    <br/>
</div>
<br/>

<div class="input-group">
    <label class="input-group-addon">出生日期：</label>
    <input type="date" id="birthday" name="birthday" value="<fmt:formatDate pattern='yyyy-MM-dd' value='${user.birthday}'/>" class="form-control"><br/>
</div>
<br/>
    <input type="submit" class="btn btn-primary" value="提交" style="width: 100% ">
</form>
</div>
<script>
</script>
</body>
</html>
